const router = require('express').Router();
// const pageJson = require('../mock/page.json');
const userService = require('../services/user.js');

// const { pageData } = pageJson;

router.get('/detail', async (req, res) => {
  const results = await userService.getPageDetail()
  res.status(200).send({
    data: { pageData: results },
    message: "success",
  })
})

module.exports = router;